﻿using System;
using System.Runtime.InteropServices;



namespace pinlib.functions
{

    /// <summary>
    /// Used by the <see cref="NativeMethods.EnumPageFiles"/>EnumPageFiles function and callbacks
    /// </summary>
    /// <seealso>http://msdn.microsoft.com/en-us/library/ms682646(v=VS.85).aspx</seealso>
    [StructLayout(LayoutKind.Sequential)]
    public struct ENUM_PAGE_FILE_INFORMATION
    {
        /// <summary>
        /// The size of this structure, in bytes
        /// </summary>
        public Int32 cb;
        /// <summary>
        /// This member is reserved
        /// </summary>
        public Int32 Reserved;
        /// <summary>
        /// The total size of the pagefile, in pages
        /// </summary>
        public IntPtr TotalSize;
        /// <summary>
        /// The current pagefile usage, in pages
        /// </summary>
        public IntPtr TotalInUse;
        /// <summary>
        /// The peak pagefile usage, in pages
        /// </summary>
        public UIntPtr PeakUsage;
    }

}